package com.yzxb.erpsystem.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
public class PurchaseOrder {
    private Long id;
    
    private String orderCode;
    
    private Long supplierId;
    
    private BigDecimal totalAmount = BigDecimal.ZERO;
    
    private LocalDateTime orderDate;
    
    private LocalDateTime expectedDeliveryDate;
    
    private LocalDateTime actualDeliveryDate;
    
    private String orderStatus;
    
    private String createdBy;
    
    private LocalDateTime createdTime;
    
    private String updatedBy;
    
    private LocalDateTime updatedTime;
    
    private String remark;
    
    private List<PurchaseOrderItem> orderItems = new ArrayList<>();
}